import request from "@/utils/request-weixin";


export function getAccessToken() {
  return request({
    url: '/gettoken?corpid=ww8cc6318dfa44a24b&corpsecret=aEI57UXR6Ugsft0nrjgKsgNu4olehjeXKtL9_chCyY0',
    method: 'get'
  })
}

export function getPartMember(access_token, department_id) {
  return request({
    url: '/user/simplelist?access_token=' + access_token + '&department_id=' + department_id + '&fetch_child=1',
    method: 'get'
  })
}

export function getSingleSign(access_token, data) {
  return request({
    url: '/checkin/getcheckindata?access_token=' + access_token,
    method: 'post',
    data
  })
}

export function getSchedule(access_token, data) {
  return request({
    url: '/checkin/getcheckinschedulist?access_token=' + access_token,
    method: 'post',
    data
  })
}

